package com.fs.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.fs.pojo.Goods;
import com.fs.pojo.GoodsFavourite;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 商品收藏表
 */
@Mapper
public interface GoodsFavouriteMapper extends BaseMapper<GoodsFavourite> {

    List<Goods> getGoodsFav(@Param("userId") Integer userId, @Param("pageNum") Integer pageNum, @Param(("limitPage")) Integer limitPage);

    Long getGoodsFavTotal(Integer userId);

    void clearAll(Integer userId);
}
